import request from "@/utils/axios";

//查询商品库列表
export function GetProductPlatformList(data) {
  return request.post("/product-backend/product/platform/relate/list", data);
}
//端获取数据字典
export function DictListChildrenByDictCode(params) {
  return request.get("/support-backend/dict/listChildrenByDictCode", { params });
}
//商品类目
export function getProductClassification(params) {
  return request.get("/product-backend/category/categoryLevelSearchList", { params });
}
export function ProductPlatformRelateSave(data) {
  return request.post("/product-backend/product/platform/relate/save", data);
}
//批量修改地址
export function ProductPlatformRelateUpdateAddress(data) {
  return request.post("/product-backend/product/platform/relate/update/address", data);
}
// 批量修改订单状态
export function ProductPlatformRelateAcceptanceStatus(data) {
  return request.post("/product-backend/product/platform/relate/update/acceptance/status", data);
}
//商品详情
export function getProductDetail(params) {
  return request.get("/product-backend/product/detail", { params });
}
export function AddressChooseList(data) {
  return request.post("/product-backend/shop/addresses/choose/list", data);
}
// 获取字典数据
export function getDictionaryData(params) {
  return request.get("/support-backend/dict/listChildrenByDictCode", { params });
}

// /shop/addresses/choose/list
